QT += widgets
requires(qtConfig(filedialog))
qtHaveModule(printsupport): QT += printsupport

CODECFORSRC = UTF-8

HEADERS       = imageviewer.h \
    fisheyecalibrate.h
SOURCES       = imageviewer.cpp \
                main.cpp \
    fisheyecalibrate.cpp

# for opencv
win32{
INCLUDEPATH += D:\opencv\build\include
win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../opencv/build/x64/vc15/lib/ -lopencv_world343
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../opencv/build/x64/vc15/lib/ -lopencv_world343d
DEPENDPATH += $$PWD/../../opencv/build/x64/vc15
}
unix{
INCLUDEPATH += /usr/local/include/opencv /usr/local/include/opencv2
LIBS += -L/usr/local/lib -lopencv_core -lopencv_imgcodecs -lopencv_highgui -lopencv_imgproc -lopencv_calib3d
}

# install
target.path = $$PWD/bin/imageviewer
INSTALLS += target
